import { Element } from '../../../fieldType'
import commonField from '../../../propertyPanel/commonConfig'
export interface TextElement extends Element {
  hint: string
  defaultValue: string
  width: number
  defaultType: number
  mixContentLength?: number
  maxContentLength?: number
}
function formListFactory () {
  return [
    commonField.name,
    commonField.attrCode,
    commonField.numRange,
    commonField.defaultValue,
    commonField.hint,
    commonField.width
  ]
}
const formList = formListFactory()
const formTemplate: TextElement = {
  attrCode: '',
  businessId: '',
  name: '多行文本',
  fieldType: 'multiText',
  hint: '',
  defaultValue: '',
  defaultType: 1,
  width: 1,
  mixContentLength: undefined,
  maxContentLength: undefined
}
export default {
  formList,
  formTemplate
}
